import request from '@/utils/request';

// 获取试题
export function getQuestionsList(params) {
	return request({
		method: 'get',
		url: '/testSubjects/query',
		params
	});
}

// 新增试题
export function addedQuestions(data) {
	return request({
		method: 'post',
		url: '/testSubjects/add',
		data
	});
}

// 修改试题
export function updateQuestions(data) {
	return request({
		method: 'post',
		url: '/testSubjects/update',
		data
	});
}

// 删除试题
export function deleteQuestions(id) {
	return request({
		method: 'get',
		url: '/testSubjects/delete/' + id
	});
}

// 获取试题详情
export function queryQuestions(id) {
	return request({
		method: 'get',
		url: '/testSubjects/query/' + id
	});
}

// 批量删除试题
export function batchDeleteQuestions(data) {
	return request({
		method: 'post',
		url: '/testSubjects/openApi/batchDelete',
		data
	});
}